﻿using PcProject.Domain.Models.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PcProject.Application.Service.Bargins
{
    public interface IBarginService
    {
        /// <summary>
        /// 砍价显示查询分页
        /// </summary>
        /// <returns></returns>
        List<BargainDto> GetBargainAsync();

        /// <summary>
        /// 砍价添加
        /// </summary>
        /// <param name="obj">参数</param>
        /// <returns></returns>
        Task<int> InserAsync(Bargain obj);

        /// <summary>
        /// 砍价删除
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<int> DeleAsync(int id);

        /// <summary>
        /// 砍价反填
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<Bargain> FillAsync(int id);

        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        BargainDto Fill(int id);

        /// <summary>
        /// 砍价修改
        /// </summary>
        /// <param name="obj">参数</param>
        /// <returns></returns>
        Task<int> UptAsync(Bargain obj);

        /// <summary>
        /// 修改价格
        /// </summary>
        /// <param name="obj">参数</param>
        /// <returns></returns>
        public int Upt(LaunchBargain obj);

    }
}
